<extend name="./Application/Home/View/Layout/application.html"/>
<block name="content">

<div class="index">
    <div class="slick meun">
        <volist name="alls" id="all">
        <a href="{{:U('show',['id'=>$all[id]])}}"><img class="img-responsive" src="{{$all.thumb}}" style="width: 354px;height: 222px;"/></a>
        </volist>
    </div>

    <ul class="nav">
        <li><a href="{{:U('all')}}">全部商品</a></li>
        <li><a href="{{:U('category')}}">商品分类</a></li>
    </ul>

    <h3>新品推荐</h3>

    <div class="products">
        <volist name="news" id="new">
        <dl>
            <dt><a href="{{:U('show',['id'=>$new[id]])}}"><img class="img-responsive"
                                 src="{{$new.thumb}}"
                                 alt="商品图片" style="width: 152px;height: 92px;"/></a></dt>
            <dd><a href="#">{{$new.name}}</a><span>已售 12</span></dd>
            <dd class="label">库存{{$new.stock}}</dd>
            <dd>¥{{$new.price}}元</dd>
        </dl>
        </volist>

    </div>

    <h3>热销商品</h3>

    <div class="products">
        <volist name="hots" id="hot">
        <dl>
            <dt><a href="{{:U('show',['id'=>$hot[id]])}}"><img class="img-responsive"
                                 src="{{$hot.thumb}}"
                                 alt="商品图片" style="width: 152px;height: 92px;"/></a></dt>
            <dd><a href="#">{{$hot.name}}</a><span>已售 12</span></dd>
            <dd class="label">库存 {{$hot.stock}}</dd>
            <dd>¥ {{$hot.price}}元</dd>
        </dl>
        </volist>
    </div>

    <h3>精品推荐</h3>

    <div class="products">
        <volist name="recommends" id="recommend">
        <dl>
            <dt><a href="{{:U('show',['id'=>$recommend[id]])}}"><img class="img-responsive"
                                 src="{{$recommend.thumb}}"
                                 alt="商品图片" style="width: 152px;height: 92px;"/></a></dt>
            <dd><a href="#">{{$recommend.name}}</a><span>已售 12</span></dd>
            <dd class="label">库存 {{$recommend.stock}}</dd>
            <dd>¥ {{$recommend.price}}元</dd>
        </dl>
        </volist>
    </div>
</div>

</block>

<block name="js">
</block>

